package com.lenovo.lcdm.type.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lenovo.lcdm.common.enums.DeleteFlagEnum;
import com.lenovo.lcdm.type.entity.TypeDataType;
import com.lenovo.lcdm.type.mapper.TypeDataTypeMapper;
import com.lenovo.lcdm.type.service.TypeDataTypeService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author xujing30
* @description 针对表【type_data_type】的数据库操作Service实现
* @createDate 2024-01-03 17:52:43
*/
@Service
public class TypeDataTypeServiceImpl extends ServiceImpl<TypeDataTypeMapper, TypeDataType>
    implements TypeDataTypeService{

    @Override
    public List<TypeDataType> findAll() {
        LambdaQueryWrapper<TypeDataType> qw = new LambdaQueryWrapper();
        qw.eq(TypeDataType::getDeleted, DeleteFlagEnum.NO.getValue());
        return list(qw);
    }
}




